package com.ihr360.insurance.service;

import com.ihr360.insurance.model.dto.benefits.MandatoryBenefitsMode;
import com.ihr360.rest.service.SimpleRestService;

import java.util.List;

/**
 * @author Stone.Shi
 * @description
 * @date 2018-01-11 15:37:23.
 */
public interface MandatoryBenefitsModeService extends SimpleRestService<MandatoryBenefitsMode, Long> {

    /**
     * 判断code是否已存在
     *
     * @param code
     * @return
     */
    boolean isCodeExisted(String code);

    /**
     * 判断name是否已存在
     *
     * @param name
     * @return
     */
    boolean isNameExisted(String name);

    /**
     * 获取当前有效的数据
     *
     * @return
     */
    List<MandatoryBenefitsMode> getCurrentValidModes();
}
